package lava.rt.persistence.sql.h2;

import javax.sql.CommonDataSource;
import javax.sql.DataSource;

import lava.rt.expcption.PersistenceExecption;
import lava.rt.persistence.Entity;
import lava.rt.persistence.sql.Criterias;



public class LinqDataContextImpl extends LinqDataContextBase{

	private final DataSource dataSource;
	
	
	
	public LinqDataContextImpl(DataSource dataSource) {
		super();
		this.dataSource = dataSource;
	}

	@Override
	protected Criterias getCriterias() {
		// TODO Auto-generated method stub
		return Criterias.h2;
	}

	@Override
	protected CommonDataSource getReadDataSource() {
		// TODO Auto-generated method stub
		return dataSource;
	}

	@Override
	protected CommonDataSource getWriteDataSource() {
		// TODO Auto-generated method stub
		return dataSource;
	}

	

	
	

	
}
